package com.conduit.comnands;

import org.sikuli.script.Screen;

import com.conduit.commands.prototype.AbstractCommand;
import com.conduit.enums.ResultCode;

public class SikuliStopScreenCapturingCommand extends AbstractCommand {

	private Screen screen;

	public SikuliStopScreenCapturingCommand() {
		commandSyntax = "stop screen capturing";
	}

	@Override
	public void executeWithArgs(String args) {
		screen.stopObserver();
		setResult("Sikuli Stopped Capturing the Screen");
		setResultCode(ResultCode.Successes);

	}

	@Override
	public String getCommandName() {
		return "Stop Screen Capturing";
	}

	public void setScreen(Screen screen) {
		this.screen = screen;
	}

	public Screen getScreen() {
		return screen;
	}

}
